package com.itrencai.d4_date.integer;

public class Test {
    public static void main(String[] args) {
        String number="23";
        //转化成整数
        //int age=Integer.parseInt(number);
        int age=Integer.valueOf(number);
        System.out.println(age+1);
        String number1="99.9";
        //转化成小数
        double score=Double.valueOf(number1);
        //double score=Double.parseDouble(number1);
        System.out.println(score + 0.1);
    }

}
